<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head th:replace="common/comm :: head "></head>
<body>
<div class="wrapper">
    <header th:replace="common/comm :: header "></header>
    <div class="main-panel">
        <div class="content">
            <div class="container-fluid">
                <h4 class="page-title">
                    <font id="WOW_TRANSLATE_43" class="WOW_TRANSLATE_STYLE"
                          data--w-o-w_-i-n-d-e-x="43" th:if="${identified==0}">人事管理 >> 人事档案管理 >> 档案修改</font>
                    <font id="WOW_TRANSLATE_43" class="WOW_TRANSLATE_STYLE"
                          data--w-o-w_-i-n-d-e-x="43" th:if="${identified==1}">人事管理 >> 人事档案管理 >> 档案变更</font>
                    <font id="WOW_TRANSLATE_43" class="WOW_TRANSLATE_STYLE"
                          data--w-o-w_-i-n-d-e-x="43" th:if="${identified==2}">人事管理 >> 人事档案管理 >> 档案审核</font>
                </h4>
                <div class="row">
                    <div class="col-md-12">

                        <div class="card">

                            <div class="card-body">
                                <form  th:action="@{/sys/archives/updateSave}" th:method="post"
                                      enctype="multipart/form-data">
                                    <input type="hidden" name="id" th:value="${archives.id}">
                                    <input type="hidden" id="salValue" th:value="${archives.salS}">
                                    <input type="hidden" id="eValue" th:value="${archives.education}">
                                    <input type="hidden" id="sValue" th:value="${archives.status}">
                                    <input type="hidden" id="auditStatus" name="auditStatus" value="">

                                    <div class="form-group">
                                        <label for="code"><font>档案编号:&nbsp;&nbsp; </font></label>
                                        <input type="text" readonly="readonly" class="form-control" name="code" th:value="${archives.code}">
                                        <small class="form-text text-muted"></small>
                                    </div>
                                    <div class="form-group">
                                        <label for="code"><font>所属部门:&nbsp;&nbsp; </font></label>
                                        <input type="text" class="form-control" readonly="readonly" id="department" name="department" th:value="${fullName}">
                                        <small class="form-text text-muted"></small>
                                    </div>
                                    <div class="form-group">
                                        <label for="code"><font> 职位名称:&nbsp;&nbsp; </font></label>
                                        <input type="hidden" name="postId" id="postId" th:value="${archives.postId}">
                                        <input type="text" readonly="readonly" class="form-control" name="postName" id="postName" th:value="${post.name}">
                                        <img th:src="@{/images/search.png}" href="javascript:;"
                                             th:onclick="'javascript:getObj('+this+');'" data-toggle="modal"
                                             data-target=".bs-example-modal-lg" />
                                        <small class="form-text text-muted"></small>
                                    </div>
                                    <div class="kv-item ue-clear" th:if="${identified!=0}">
                                        <label>变更类型:</label>
                                        <div class="kv-item-content">
                                            <select name="changeType" class="form-control" id="changeType">
                                            </select>
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <label for="code"><font> 姓名:&nbsp;&nbsp; </font></label>
                                        <input type="text" class="form-control" name="name" th:value="${archives.name}">
                                        <small class="form-text text-muted"></small>
                                    </div>
                                    <div class="form-group">
                                        <label for="code"><font>EMAIL:&nbsp;&nbsp; </font></label>
                                        <input type="text" class="form-control email" name="email" th:value="${archives.email}">
                                        <small class="form-text text-muted"></small>
                                    </div>
                                    <div class="form-group">
                                        <label for="code"><font>住址:&nbsp;&nbsp; </font></label>
                                        <input type="text" class="form-control" name="address" th:value="${archives.address}">
                                        <small class="form-text text-muted"></small>
                                    </div>
                                    <div class="form-group">
                                        <label for="code"><font>身份证号:&nbsp;&nbsp; </font></label>
                                        <input type="text" class="form-control isCardNo" name="identityCard" th:value="${archives.identityCard}">
                                        <small class="form-text text-muted"></small>
                                    </div>
                                    <div class="form-group">
                                        <label for="code"><font>毕业院校:&nbsp;&nbsp; </font></label>
                                        <input type="text" class="form-control" name="college" th:value="${archives.college}">
                                        <small class="form-text text-muted"></small>
                                    </div>
                                    <div class="kv-item ue-clear">
                                        <label>薪酬标准:</label>
                                        <div class="kv-item-content">
                                            <select name="salS"  class="form-control" id="salS">
                                            </select>
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <label for="code"><font>社保卡号:&nbsp;&nbsp; </font></label>
                                        <input type="text" class="form-control" name="socialSecurity"
                                               th:value="${archives.socialSecurity}">
                                        <small class="form-text text-muted"></small>
                                    </div>
                                    <div class="kv-item ue-clear">
                                        <label>档案状态:</label>
                                        <div class="kv-item-content">
                                            <select name="status" class="form-control" id="status">
                                            </select>
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <label for="code"><font>职位编码:&nbsp;&nbsp; </font></label>
                                        <input type="text" readonly="readonly" class="form-control" name="postCode" th:value="${post.code}">
                                        <small class="form-text text-muted"></small>
                                    </div>
                                    <div class="form-group">
                                        <label for="code"><font>性别:&nbsp;&nbsp; </font></label>
                                        <select name="gender" class="form-control" id="gender" >
                                            <option value="-1">--请选择--</option>
                                            <option th:selected="0 == ${archives.gender}"  th:value="0">女
                                            </option>
                                            <option th:selected="1 == ${archives.gender}"  th:value="1">男
                                            </option>
                                        </select>
                                    </div>
                                    <div class="form-group">
                                        <label for="code"><font>联系电话:&nbsp;&nbsp; </font></label>
                                        <input type="text" class="form-control phone" name="phone" th:value="${archives.phone}">
                                        <small class="form-text text-muted"></small>
                                    </div>
                                    <div class="form-group">
                                        <label for="code"><font>户口所在地:&nbsp;&nbsp; </font></label>
                                        <input type="text" class="form-control" name="koseki" th:value="${archives.koseki}">
                                        <small class="form-text text-muted"></small>
                                    </div>
                                    <div class="form-group">
                                        <label for="code"><font>专业:&nbsp;&nbsp; </font></label>
                                        <input type="text" class="form-control" name="major" th:value="${archives.major}">
                                        <small class="form-text text-muted"></small>
                                    </div>
                                    <div class="form-group">
                                        <label for="code"><font>开户行:&nbsp;&nbsp; </font></label>
                                        <input type="text" class="form-control" name="openBank" th:value="${archives.openBank}">
                                        <small class="form-text text-muted"></small>
                                    </div>
                                    <div class="form-group">
                                        <label for="code"><font> 登记人:&nbsp;&nbsp; </font></label>
                                        <input type="text" readonly="readonly" class="form-control" name="userName"
                                               th:value="${#session.getAttribute('userSession').username}">
                                        <small class="form-text text-muted"></small>
                                    </div>
                                    <div class="form-group">
                                        <label for="code"><font>紧急联系人:&nbsp;&nbsp; </font></label>
                                        <input type="text" class="form-control urgentContacts" name="urgentContacts"
                                               th:value="${archives.urgentContacts}">
                                        <small class="form-text text-muted"></small>
                                    </div>
                                    <div class="form-group">
                                        <label for="code"><font>政治面貌:&nbsp;&nbsp; </font></label>
                                        <input type="text" class="form-control" name="politics" th:value="${archives.politics}">
                                        <small class="form-text text-muted"></small>
                                    </div>
                                    <div class="kv-item ue-clear">
                                        <label>学历:</label>
                                        <div class="kv-item-content" >
                                            <select name="education" class="form-control" id="education">
                                            </select>
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <label for="code"><font>银行卡号:&nbsp;&nbsp; </font></label>
                                        <input type="text" class="form-control bankAccount" name="bankAccount" th:value="${archives.bankAccount}">
                                        <small class="form-text text-muted"></small>
                                    </div>
                                    <div class="form-group">
                                        <label for="code"><font>个人履历:&nbsp;&nbsp; </font></label>
                                        <input type="text" class="form-control" name="record" th:value="${archives.record}">
                                        <small class="form-text text-muted"></small>
                                    </div>
                                    <div class="form-group">
                                        <label for="code"><font>备注:&nbsp;&nbsp; </font></label>
                                        <input type="text" class="form-control" name="remark" th:value="${archives.remark}">
                                        <small class="form-text text-muted"></small>
                                    </div>


                                    <div th:if="${archives.picturePath!=null}">
                                        <div id="picFile" style="display: none">
                                            <label for="code"><font>图片:&nbsp;&nbsp; </font></label>
                                            <input type="file" name="attachs">

                                        </div>
                                        <div id="pictureShow">
                                            <label for="code"><font>图片:&nbsp;&nbsp; </font></label><a
                                                href="javascript:;" th:text="${archives.name+'个人图片'}"></a>&nbsp;&nbsp;
                                            <a href="javascript:;"
                                               th:onclick="'javascript:delFile('+${archives.id}+','+${0}+');'">删除</a>
                                        </div>
                                    </div>
                                    <div th:if="${archives.picturePath==null}">
                                        <div>
                                            <label for="code"><font> 图片:&nbsp;&nbsp; </font></label>
                                            <input type="file" class="form-control" name="attachs">
                                        </div>
                                    </div>

                                    <div th:if="${archives.resumePath!=null}">
                                        <div id="resFile" style="display: none">
                                            <label for="code"><font>简历附件:&nbsp;&nbsp; </font></label>
                                            <input type="file" class="form-control" name="attachs">
                                        </div>
                                        <div id="resumeShow">
                                            <label for="code"><font> 简历附件:&nbsp;&nbsp; </font></label>
                                            <a href="javascript:;" th:onclick="|downloadFile(${archives.id})|" th:text="${archives.name+'个人简历'}"></a>&nbsp;&nbsp;
                                            <a href="javascript:;" th:onclick="|delFile(${archives.id},${1})|">删除</a>
                                        </div>
                                    </div>

                                    <div th:if="${archives.resumePath==null}">
                                        <div>
                                            <label for="code"><font>简历附件:&nbsp;&nbsp; </font></label>
                                            <input type="file" class="form-control" name="attachs">
                                            <small class="form-text text-muted"></small>
                                        </div>
                                    </div>

                                    <div class="form-group" style="text-align: center;" th:if="${identified!=2}">
                                        <input type="submit" class="btn btn-success" value="提交">
                                        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                                        <input type="button" th:onclick="'javascript:history.go(-1);'" class="btn btn-danger"  value="返回" >
                                    </div>
                                    <div class="form-group" style="text-align: center;" th:if="${identified==2}">
                                        <input type="submit" class="btn btn-success" th:value="审核通过" th:onclick="setAuditStatus(11)">
                                        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                                        <input type="submit" class="btn btn-success" th:value="驳回" th:onclick="setAuditStatus(15)">
                                        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                                        <input type="button" th:onclick="'javascript:history.go(-1);'" class="btn btn-danger"  value="返回" >
                                    </div>

                                </form>
                            </div>
                        </div>
                    </div>
                </div>

            </div>

            <!-- Modal -->
            <div class="modal fade bs-example-modal-lg" tabindex="-1" role="dialog" aria-labelledby="myLargeModalLabel" id="myModal" >
                <div class="modal-dialog modal-lg" role="document">
                    <div class="modal-content">
                        <div class="modal-header">
                            <span>应聘职位列表</span>
                            <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span
                                    aria-hidden="true">&times;</span></button>
                        </div>
                        <div class="modal-body">
                            <input id="oId" type="hidden" th:value="${oId}"/>
                            <form class="form-inline" th:action="@{/sys/post/showList(show='incl')}" method="post" id="formIndex2"
                                  onsubmit="return false">
                                <input type="hidden" id="showDiv" value="showList">
                                <input type="hidden" value="1" name="pageIndex" id="formPageNo"/>
                                &nbsp;&nbsp;职位名称:&nbsp;&nbsp;
                                <input class="form-control " style="width: 130px" type="text" name="name" th:value="${name}"/>
                                &nbsp;&nbsp;所属部门:&nbsp;&nbsp;
                                <select class="form-control" name="oId">
                                </select>
                                <input type="hidden" name="isStart" value="1">
                                &nbsp;&nbsp; &nbsp;&nbsp;<input type="button" id="sel"
                                                                value="查询" class="btn btn-default"
                                                                onclick="queryList(document.getElementById('formIndex2'),1)">
                                &nbsp;&nbsp;
                                &nbsp;&nbsp;<input type="button" id="ok" value="确定" class="btn btn-default">
                                &nbsp;&nbsp;
                            </form>
                            <div id="showList" class="pageListShow"></div>
                        </div>
                    </div>
                </div>
            </div>


        </div>
    </div>
    <footer th:replace="common/comm :: footer "></footer>
</div>
</body>
<script th:src="@{/js_hr/post/post.js}"></script>
<script type="text/javascript" th:src="@{/js_hr/archives/archives.js}"></script>
</html>


